/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.kai.zhouzhi.util;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author Administrator
 */
public class EntityManagerUtil {
    private static EntityManagerFactory emf;

    private EntityManagerUtil(){
    }

    static {
        emf = Persistence.createEntityManagerFactory("ParkWebserverPU");
    }

    public static EntityManager getEntityManager() {
        return emf.createEntityManager();
    }
    
}
